Skip to content

Intern attribute type#173

Open
jcmosc wants to merge 4 commits into
OpenSwiftUIProject:mainfrom
jcmosc:intern-attribute-type
Open

Intern attribute type#173
jcmosc wants to merge 4 commits into
OpenSwiftUIProject:mainfrom
jcmosc:intern-attribute-type

Conversation

@jcmosc

@jcmosc jcmosc commented Aug 24, 2025

Copy link
Copy Markdown
Contributor

This adds a OGUnownedGraphContextRef type which is actually a pointer to a OG::Graph instance.

The OGSubgraphGetGraph function, which is now unimplemented, needs to look up the OG::Graph::Context instance from a map of context IDs to Context instances stored on the OG::Graph instance.

The one inconsistency is OGGraphContextGetGraph which still takes a raw pointer to a OG::Graph::Context instance. Though this function is only called from AGSubgraphGetGraph and looks to be inlined.

@codecov

codecov Bot commented Aug 24, 2025

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 0% with 5 lines in your changes missing coverage. Please review.
✅ Project coverage is 4.83%. Comparing base (2a615c6) to head (5aa6545).
⚠️ Report is 43 commits behind head on main.

Files with missing lines Patch % Lines
...AttributeGraph/Attribute/Attribute/Attribute.swift 0.00% 5 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff            @@
##            main    #173      +/-   ##
========================================
+ Coverage   4.81%   4.83%   +0.02%     
========================================
  Files         28      28              
  Lines        831     827       -4     
========================================
  Hits          40      40              
+ Misses       791     787       -4     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@Kyle-Ye Kyle-Ye left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Rebase to use OAG instead of OG to fix conflict.

# Conflicts:
#	Sources/OpenGraphCxx/Graph/OGGraph.cpp
#	Sources/OpenGraphCxx/Graph/OGGraphContext.cpp
#	Sources/OpenGraphCxx/Graph/OGSubgraph.cpp
#	Sources/OpenGraphCxx/Graph/Subgraph.cpp
#	Sources/OpenGraphCxx/include/OpenGraph/OGGraph.h
#	Sources/OpenGraphCxx/include/OpenGraph/OGGraphContext.h
#	Sources/OpenGraphCxx/include/OpenGraph/OGSubgraph.h
#	Sources/OpenGraphCxx/include/OpenGraphCxx/Graph/Graph.hpp
#	Sources/OpenGraphCxx/include/OpenGraphCxx/Graph/Subgraph.hpp
@jcmosc jcmosc force-pushed the intern-attribute-type branch from 5dd2d74 to 5aa6545 Compare September 7, 2025 14:03
@jcmosc jcmosc requested a review from Kyle-Ye September 9, 2025 12:54
@Kyle-Ye

Kyle-Ye commented Oct 4, 2025

Copy link
Copy Markdown
Member

@claude review

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants